<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- 
	html注释，客户端可见
 -->
<%--
	Jsp注释，客户端不可见
 --%>
<%!
	String title = "Jsp Web Demo";
%>
<%!
	public void fun1(){
		System.out.println("全局方法");
	}
%>
<%! 
	class C{
		private int va;
		public void fun(){
			System.out.println("全局类");
		}
}
%>
<title><%=title %></title>
</head>
<body>
<h1>*********** Hi , Jsp ! ***********</h1>
Title = <%=title %><br>
<!-- 
	局部代码，将编译到servlet文件的init方法中执行，是执行的入口
 -->
<%
	//java单行注释
	out.println("<br>**************** Begin ******************<br>");
	fun1();
	/*
		java多行注释
		注释内容
	*/
	C cinstanse = new C();
	out.println("cinstanse.va="+cinstanse.va+", fun run"+"<br>");
	cinstanse.fun();
	out.println("<h2>Init结束！</h2>");
%>
<h2 style="color: blue">测试序列：</h2>
<ol>
	<li>
		<h3><a href="include.jsp" target="_blank">include 测试</a></h3>
	</li>
	<li>
		<h3><a href="forward.jsp" target="_blank">forward 测试</a></h3>
	</li>
	<li>
		<h3><a href="chapter3/testIndex.jsp" target="_blank">Jsp九大内置对象及四大作用域练习</a></h3>
	</li>
	<li>
		<h3><a href="login.jsp" target="_blank">使用jsp servlet处理用户登录</a></h3>
	</li>
	<li>
		<h3><a href="el/index.jsp" target="_blank">使用EL表达式</a></h3>
	</li>
	<li>
		<h3><a href="tag/index.jsp" target="_blank">使用标签</a></h3>
	</li>	
</ol>

<br>
</body>
</html>